home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000311_fdc@columbia.edu_Sat Sep 27 11:34:34 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
1KB
|
37 lines
Article: 14555 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Array assignment problem
Date: 27 Sep 2003 11:34:30 -0400
Organization: Columbia University
Lines: 19
Message-ID: <bl4am6$7m1$1@sesame.cc.columbia.edu>
References: <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1064676870 9544 128.59.59.56 (27 Sep 2003 15:34:30 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 27 Sep 2003 15:34:30 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14555
In article <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com>,
Jun Zhang <nugulus@netscape.net> wrote:
: fopen /read \%c phonelist
: while true {
: fread /line \%c record
: echo "The line read in is \m(record)" ; Got "5035 rootpass", fine.
: void \fsplit(\m(record),&a)
: echo "Phonenumber is \&a[0]" ; Got "phonenumber is 3",
: ; instead of 5035.
: What's wrong?
:
As explained in the documentation, the 0th element of an array contains
the number of elements in the array. The data elements begin at 1.
You can see what's in an array with "show array", in this case:
show array a
- Frank